using System;
using System.Collections.Generic;
namespace DalatCooking.Core
{
    public abstract class ICategoryRepository
    {
        public abstract bool Insert(Category entity);
        public abstract bool Update(Category entity);
        public abstract bool Delete(Category entity);
        public abstract bool Delete(int id);
        public abstract List<Category> FindAll();
        public abstract Category FindById(int id);
        public abstract Category Single(int id);
        public abstract Category FindByName(string name);
        public abstract List<Category> PagingSql(int pageSize, int pageNum, out int totalRowCount);
        public abstract List<Category> PagingLinq(int pageSize, int pageNum, out int totalRowCount);
        public abstract bool SetActive(int id);
        public abstract bool SetSortIndex(int id, int isup);
        public abstract bool RemoveSelectedItem(int id);
        public abstract bool RemoveAll();
        public abstract bool RestoreSelectedItem(int id);
        public abstract bool RestoreAll();
    }
}